package cn.com.bluemoon.daps.model.dto;

import cn.com.bluemoon.daps.model.entity.DapDataModelTableField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class SubordinateKeyDto {

    @ApiModelProperty(value = "表主键id")
    private String id;

    @ApiModelProperty(value = "索引中文名")
    private String keyChinName;

    @ApiModelProperty(value = "索引方法, 1:为空 2:btree 3:hash")
    private Integer keyMethod;

    @ApiModelProperty(value = "索引名")
    private String keyName;

    @ApiModelProperty(value = "索引类型, 1:表示为空, 2:normal, 3:unique, 4:fulltext, 5:spatial")
    private Integer keyType;

    @ApiModelProperty(value = "模型下属表id")
    private String modelTableId;

    @ApiModelProperty(value = "模型id")
    private String dataModelId;

    @ApiModelProperty(value = "对应模型属下表的字段名,多个name的长度（针对前缀索引）用英文逗号隔开")
    private String fieldNameSubParts;

    @ApiModelProperty(value = "对应模型属下表的字段ids,多个id用英文逗号隔开")
    private String fieldIds;

    @ApiModelProperty(value = "字段中文名")
    private List<DapDataModelTableField> fieldNames;


}
